//
//  WXPddServiceModule.swift
//  mlz
//
//  Created by 吕凌 on 2018/7/18.
//  Copyright © 2018年 吕凌. All rights reserved.
//

import Foundation

public extension WXPddServiceModule {
    
    @objc public func pullUp(_ path:String, callback: @escaping WXModuleKeepAliveCallback) {
        if(!UIApplication.shared.canOpenURL(URL.init(string: "pinduoduo://")!)) {
            callback(false, false);
        } else {
            let str = "pinduoduo://com.xunmeng.pinduoduo/" + path;
            UIApplication.shared.openURL(URL.init(string: str)!);
            callback(true, false);
        }
    }
}
